package joymouse.logger;

import java.io.PrintStream;

/**
 *
 * @author Ben Wolsieffer
 */
public interface Loggable {

    /**
     * Prints a message to the specified {@link PrintStream}. This should be
     * overridden in subclasses to provide custom logging behavior.
     *
     * @param stream the stream to log to
     */
    void log(PrintStream stream);

    /**
     * Gets the log level of this {@code Loggable}.
     *
     * @return the log level
     */
    public int getLevel();
}
